angular.module('app.directives', [])


.directive('hideTabs', function ($rootScope) {
    return {
        restrict: 'A',
        link: function($scope, $el, attr) {
            $rootScope.hideTabs = true;
            $scope.$watch(attr.hideTabs, function(value){
                $rootScope.hideTabs = value;
            });

            $scope.$on('$destroy', function() {
                $rootScope.hideTabs = false;
            });
        }
    }
})
// .directive('lottery', function ($rootScope) {
//     return {
//         restrict: 'A',
//         link: function($scope, $el, attr) {
            
//         }
//     }
// })